package com.sq108.template.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

/**
 * 实体类
 *
 * @author liulei
 */
@ApiModel(value = "User")

@Getter
@Setter
@JsonInclude(JsonInclude.Include.NON_NULL)
public class User {
    @ApiModelProperty(notes = "UserId")
    @JsonProperty("UserId")
    public Integer userId;
    @ApiModelProperty(notes = "UserName")
    @JsonProperty("UserName")
    public String userName;
    @ApiModelProperty(notes = "RegTime")
    @JsonProperty("RegTime")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public Date regTime;
}
